#include "Level.h"
#include "UpLeftFirstTooth.h"
#include "UpLeftSecondTooth.h"
#include "UpLeftThirdTooth.h"
#include "UpRightFirstTooth.h"
#include "UpRightSecondTooth.h"
#include "UpRightThirdTooth.h"
#include "DownLeftFirstTooth.h"
#include "DownLeftSecondTooth.h"
#include "DownLeftThirdTooth.h"
#include "DownRightFirstTooth.h"
#include "DownRightSecondTooth.h"
#include "DownRightThirdTooth.h"
#include "HolePoint.h"
#include "Dirty.h"
#include "Auger.h"
#include "Brush.h"
#include "Rust.h"
#include "Nick.h"
#include "Black.h"
#include "Polish.h"
#include "Hook.h"
#include "Pliers.h"
#include "Fix.h"
#include "Water.h"

#include <vector>

USING_NS_CC;

Level::Level(void)
{
}


Level::~Level(void)
{
}

Level::Level(HelloWorld* helloWorld){

    //CCSize visibleSize = CCDirector::sharedDirector()->getVisibleSize();
    //CCPoint origin = CCDirector::sharedDirector()->getVisibleOrigin();

    CCSprite* bg = CCSprite::create("yy_bg.png");
    bg->setPosition(ccp(399,659));
    bg->setZOrder(1);
    helloWorld->addChild(bg);
    
    CCSprite* bg2 = CCSprite::create("yy_bg2.png");
    bg2->setPosition(ccp(400,158));
    bg2->setZOrder(4);
    helloWorld->addChild(bg2);
    
    CCSprite* bg3 = CCSprite::create("yy_bg3.png");
    bg3->setPosition(ccp(400,147));
    bg3->setZOrder(5);
    helloWorld->addChild(bg3);
    
    //hat
    CCSprite* hd1 = CCSprite::create("yy_hd_1.png");
    hd1->setPosition(ccp(395,909));
    hd1->setZOrder(2);
    helloWorld->addChild(hd1);
    
    //eyebrow left
    CCSprite* hd2 = CCSprite::create("yy_hd_2.png");
    hd2->setPosition(ccp(307,796));
    hd2->setZOrder(5);
    helloWorld->addChild(hd2);
    //eyebrow right
    CCSprite* hd3 = CCSprite::create("yy_hd_3.png");
    hd3->setPosition(ccp(470,803));
    hd3->setZOrder(5);
    helloWorld->addChild(hd3);
    
    //face
    CCSprite* hd4 = CCSprite::create("yy_hd_4.png");
    hd4->setPosition(ccp(400,656));
    hd4->setZOrder(3);
    helloWorld->addChild(hd4);
    
    //eye left
    CCSprite* hd5 = CCSprite::create("yy_hd_5.png");
    hd5->setPosition(ccp(393,758));
    hd5->setZOrder(4);
    helloWorld->addChild(hd5);
    //eye right
    CCSprite* hd6 = CCSprite::create("yy_hd_6.png");
    hd6->setPosition(ccp(479,742));
    hd6->setZOrder(3);
    helloWorld->addChild(hd6);
    
    //eye ball
    CCSprite* hd7 = CCSprite::create("yy_hd_7.png");
    hd7->setPosition(ccp(457,736));
    hd7->setZOrder(4);
    helloWorld->addChild(hd7);
    
    //mouth
    CCSprite* hd8 = CCSprite::create("yy_hd_8.png");
    hd8->setPosition(ccp(410,435));
    hd8->setZOrder(3);
    helloWorld->addChild(hd8);
    
    //bear left
    CCSprite* hd9 = CCSprite::create("yy_hd_9.png");
    hd9->setPosition(ccp(267,691));
    hd9->setZOrder(5);
    helloWorld->addChild(hd9);
    //bear right
    CCSprite* hd10 = CCSprite::create("yy_hd_10.png");
    hd10->setPosition(ccp(534,704));
    hd10->setZOrder(5);
    helloWorld->addChild(hd10);
    
    //coat
    CCSprite* hd11 = CCSprite::create("yy_hd_11.png");
    hd11->setPosition(ccp(410,403));
    hd11->setZOrder(1);
    helloWorld->addChild(hd11);
    
    UpLeftFirstTooth* upLeftFirstTooth = new UpLeftFirstTooth(helloWorld);
    UpLeftSecondTooth* upLeftSecondTooth = new UpLeftSecondTooth(helloWorld);
    UpLeftThirdTooth* upLeftThirdTooth = new UpLeftThirdTooth(helloWorld);
    UpRightFirstTooth* upRightFirstTooth = new UpRightFirstTooth(helloWorld);
    UpRightSecondTooth* upRightSecondTooth = new UpRightSecondTooth(helloWorld);
    UpRightThirdTooth* upRightThirdTooth = new UpRightThirdTooth(helloWorld);
    DownLeftFirstTooth* downLeftFirstTooth = new DownLeftFirstTooth(helloWorld);
    DownLeftSecondTooth* downLeftSecondTooth = new DownLeftSecondTooth(helloWorld);
    DownLeftThirdTooth* downLeftThirdTooth = new DownLeftThirdTooth(helloWorld);
    DownRightFirstTooth* downRightFirstTooth = new DownRightFirstTooth(helloWorld);
    DownRightSecondTooth* downRightSecondTooth = new DownRightSecondTooth(helloWorld);
    DownRightThirdTooth* downRightThirdTooth = new DownRightThirdTooth(helloWorld);
    
    std::vector<BaseTooth*> teeth;
    
    Hook* hook = new Hook(helloWorld, teeth);
    
    Brush* brush = new Brush(helloWorld, teeth);
    
    Polish* polish = new Polish(helloWorld, teeth);

    Auger* auger = new Auger(helloWorld, teeth);
    
    Pliers* pliers = new Pliers(helloWorld, teeth);
    
    Fix* fix = new Fix(helloWorld,teeth);
    
    Water* water = new Water(helloWorld,teeth);
}
